import http from "@/api";

/**
 * @name 制单模块
 */
// * 订单列表
export const orderList = (params: any) => {
	return http.post(`order/list`, params);
};
// * 订单作废
export const orderCancel = (params: any) => {
	return http.post(`order/cancel`, params);
};
// * 批次订单
export const listBatch = (params: any) => {
	return http.post(`order/listBatch`, params);
};
// * 编辑订单
export const orderUpdate = (params: any) => {
	return http.post(`order/update`, params);
};
// * 面单打印
export const printExpressLabel = (params: any) => {
	return http.post(`print/expressLabel`, params);
};
// * 标签打印
export const printOrderLabel = (params: any) => {
	return http.post(`print/orderLabel`, params);
};
// * D82订单补全
export const completionOrder = (params: any) => {
	return http.post(`order/completionOrder`, params);
};
// * 母件列表
export const orderMotherList = (params: any) => {
	return http.post(`order_mother/list`, params);
};
// * 子件列表
export const orderMotherListDetail = (params: any) => {
	return http.post(`order_mother/listDetail`, params);
};
// * 打印回调
export const printTimes = (params: any) => {
	return http.post(`order/printTimes`, params);
};
// * 订单日志
export const listLog = (params: any) => {
	return http.post(`order/listLog`, params);
};
// * 重复打印检测
export const checkExpress = (params: any) => {
	return http.post(`print/checkExpress`, params);
};
